package com.cdtye.itps.cms.dao.warn.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.cdtye.common.mybatiscore.base.BaseVo;
import com.cdtye.itps.cms.dao.warn.entity.JcjcWarnFiles;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 *
 * @author
 * @date 2021-11-23
 */
@ApiModel("预警信息")
@Getter
@Setter
public class JcjcWarnInformationVo extends BaseVo {

    @ApiModelProperty(value = "预警信息标题")
    private String warnTitle;

    @ApiModelProperty(value = "信息简介")
    private String description;

    @ApiModelProperty(value = "发布人")
    private String createBy;

    @ApiModelProperty(value = "Y：invalid   N：valid")
    private String delFlag;

    @ApiModelProperty(value = "预警内容")
    private String contentString;

    @ApiModelProperty(value = "附件list")
    private List<JcjcWarnFiles> imagesList;

    @ApiModelProperty(value = "信息类型")
    private String warnType;

    @JSONField(format = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("发现开始时间")
    private Date startDate;

    @JSONField(format = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("发现结束时间")
    private Date endDate;

    @JSONField(format = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createDatetime;
}

